package day240428.p2;

public class Person extends Test {
    String name;
    int age;
    //constructors


    public Person(int age) {
        this.age = age;
    }

    public Person(String name) {
        this.name = name;
    }

    //behavior
    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }

    @Override
    public String toString() {
        return super.toString();
    }
}
